<link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="../css/style.css">

<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>

<script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../plugins/angularjs/angular.min.js"></script>
<!-- 日历组件 -->
<link rel="stylesheet" href="../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
<script src="../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="../plugins/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<!-- 分页组件 -->
<script src="../plugins/angularjs/pagination.js"></script>
<link rel="stylesheet" href="../plugins/angularjs/pagination.css" >
<!-- 分页组件结束  -->
<!-- 树表格 -->
<script src="../plugins/treeTable/jquery.treetable.js"></script>
<link rel="stylesheet" href="../plugins/treeTable/jquery.treetable.css">
<link rel="stylesheet" href="../plugins/treeTable/jquery.treetable.theme.default.css">
<script src="../plugins/treeTable/angular-treetable.js"></script>
<!-- 树表格结束 -->
<script src="../js/common.js"></script>
<script src="../js/base_pagination.js"></script>
<script src="../js/service/findRoleService.js"></script>
<script src="../js/controller/findRoleController.js"></script>
<script>

</script>

<body class="hold-transition skin-red sidebar-mini" ng-app="findRole" ng-controller="findRoleController" >
<!--ng-app="findRole" ng-controller="findRoleController" ng-init="findRole()"-->

<div class="box-body">



    <!-- 内容区域 -->


    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            用户管理
            <small>用户详情</small>
        </h1>
        <ol class="breadcrumb">
            <li><a ><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a >用户管理</a></li>
            <li class="active">用户详情</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <div class="box-body">

            <!--树表格-->
            <div class="tab-pane" id="tab-treetable">
                <table id="collapse-table" class="table table-bordered table-hover dataTable treetable">
                    <thead>
                    <tr>

                        <th>用户</th>
                        <th>描述</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody><tr data-tt-id="0" >
                        <td colspan="2" ><span style="padding-left: 0px;"><a href="#" title="Collapse">&nbsp;</a></span>test</td>
                    </tr>
                    </tbody><!-- ngRepeat: entity in list.roleCustomList --><tbody   class="ng-scope">

                <!--ng-repeat="entity in list.roleCustomList "-->
                <tr data-tt-id="1" data-tt-parent-id="0" class="branch expanded" style="display: table-row;">
                    <td class="ng-binding"><span  style="padding-left: 19px;"><a href="#" title="Collapse">&nbsp;</a></span>USER</td>
                    <td class="ng-binding">普通管理员</td>
                    <td class="text-center">
                        <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#delModal" ng-click="getId(entity.id)">删除</button>
                    </td>
                </tr>

                <!--ng-repeat="permission in entity.permissionList "-->
                <!-- ngRepeat: permission in entity.permissionList --><tr  data-tt-id="1-1" data-tt-parent-id="1" class="ng-scope" >
                    <td class="ng-binding"><span class="indenter" style="padding-left: 38px;"></span>getBlogList</td>
                    <td class="ng-binding">/blog/list.do</td>
                </tr><!-- end ngRepeat: permission in entity.permissionList --><tr  data-tt-id="1-1" data-tt-parent-id="1" class="ng-scope ">
                    <td class="ng-binding"><span class="indenter" style="padding-left: 38px;"></span>addBlog</td>
                    <td class="ng-binding">/blog/add.do</td>
                </tr><!-- end ngRepeat: permission in entity.permissionList -->

                </tbody><!-- end ngRepeat: entity in list.roleCustomList -->

                </table>

            </div>
            <!--树表格/-->

        </div>

    </section>
    <!-- 正文区域 /-->

</div>
<!-- @@close -->
<!-- 内容区域 /-->
<div class="modal fade" id="delModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width:500px;top:35px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 >提示</h3>
            </div>
            <div class="modal-body"  >
                你真的要删除吗？
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true" ng-click="deleRoleToUser()">确定</button>
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        /*table tree*/

       $("#collapse-table").treetable({
            expandable: true
        });

    });

</script>

</body>



